class EntityFactory {
  static T generateOBJ<T>(json) {
    if (json == null || json == '') {
      return null;
    } else {
      switch (T.toString()) {
//         case 'UserInfoEntity':
//           return UserInfoEntity.fromJson(json) as T;
        default:
          return json as T;
      }
    }
  }
}